// role-model.js - A mongoose model
//
// See http://mongoosejs.com/docs/models.html
// for more of what you can do here.
module.exports = function (app) {
  const mongooseClient = app.get('mongooseClient')
  const { Schema } = mongooseClient
  const role = new Schema({
    name: { type: String },
    powers: [{ type: String }],
    mark: { type: String },
    del: { type: Boolean, default: false }
  })

  return mongooseClient.model('role', role)
}
